#ifndef CONNECTORWIDGET_H
#define CONNECTORWIDGET_H

#include <QWidget>
#include <QSerialPort>
#include <QComboBox>
#include <QTextBrowser>
#include <QSerialPortInfo>
#include <QTextCursor>
#include <QDebug>
#include <QMessageBox>


namespace Ui {
class ConnectorWidget;
}

class ConnectorWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ConnectorWidget(QSerialPort *_port,QWidget *parent = 0);
    ~ConnectorWidget();

private slots:
    void on_toolButton_Fresh_clicked();

    void on_pushButton_OK_clicked();

    void on_pushButton_cancel_clicked();

private:
    QSerialPort *m_port;      /*定义一个端口*/
    Ui::ConnectorWidget *ui;
    int FindCOM();
    //QSerialPort *m_port=nullptr;

    int RXDataSize;             /*计算接收数据的大小*/
    int TXDataSize;             /*计算发送数据的大小*/
};

#endif // CONNECTORWIDGET_H
